@keyframes scaleUp {
  from {
    transform: scale(0) translate(-50%, -50%);
    /* 添加初始定位 */
    opacity: 0;
  }

  to {
    transform: scale(1) translate(-50%, -50%);
    /* 保持居中定位 */
    opacity: 1;
  }
}

@keyframes shrinkOut {
  from {
    transform: scale(1) translate(-50%, -50%);
    opacity: 1;
  }

  to {
    left: 50%;
    top: 25%;
    /* 保持 translate 的居中偏移，同时添加 !important 确保优先级 */
    transform: scale(0) translate(-50%, -50%);
    opacity: 0;
  }
}

.scale-animation {
  animation: scaleUp 1s ease-out;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.shrink-animation {
  animation: shrinkOut 0.8s ease-in forwards;
  position: fixed !important;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.happy-btn {
  position: fixed;
  margin-bottom: -200rpx;
  left: 50%;
  transform: translate(-50%, -50%);
}

.btn-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: white;
  width: 100px;
  text-align: center;
  font-weight: bold;
}